#include <iostream>
#include "element.h"

int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    MyElement *obj1,*obj2,*obj3,*obj4,*obj5;
	Plate *plate1,*plate2,*plate3;
	
	obj1 = new Apple();
	obj2 = new Pear();
	plate1 = new Plate();
	plate1->add(obj1);
	plate1->add(obj2);
	
	obj3 = new Banana();
	obj4 = new Banana();
	plate2 = new Plate();
	plate2->add(obj3);
	plate2->add(obj4);
	
	obj5 = new Apple();
	plate3 = new Plate();
	plate3->add(plate1);
	plate3->add(plate2);
	plate3->add(obj5);
	
	plate3->eat();

    return 0;
}